package cn.cutie.clotconfig.client.config;

import org.springframework.core.env.EnumerablePropertySource;

/**
 * @Description:
 * @Author: Cutie
 * @CreateDate: 2024/5/10 17:07
 * @Version: 0.0.1
 */
public class ClotPropertySource extends EnumerablePropertySource<ClotConfigService> {

    public ClotPropertySource(String name, ClotConfigService source) {
        super(name, source);
    }

    // 属性名字
    @Override
    public String[] getPropertyNames() {
        return source.getPropertyNames();
    }

    // 根据属性名字取值
    @Override
    public Object getProperty(String name) {
        return source.getProperty(name);
    }
}
